﻿function doCreate() {
    $.ajax({
        url: '/admin/posterntoken/docreate',
        async: false,
        cache: false,
        type: "post",
        dataType: "json",
        data: "duration=" + $("#duration").val(),
        success: function (result) {
            if (result.status) {
                location.href = result.url;
            } else {
                alert(result.message);
            }
        }
    });
}